<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>App</h1>
    <p>
      this p tag
      <b>lucy</b>
      <i>jack</i>
    </p>
    <div>
      this divs
      <span>hello</span>
      <b>!!</b>
    </div>
    <script>
      console.log(document.body.childNodes[3]);
      console.log(document.body.childNodes[5]);
      const p = document.body.childNodes[3];
      console.log(p.childNodes[1]);
      console.log(p.childNodes[3]);

      const div = document.body.childNodes[3];
      console.log(div.childNodes[1]);
      console.log(div.childNodes[3]);
    </script>
  </body>
</html>
